<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
        + request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>机场跑道异物监测管理平台</title>
	<link rel="shortcut icon" type="image/x-icon" sizes="16x16" href="resources/img/casc-icon.ico">
	<script src="resources/js/jquery-3.5.1.js"></script>
	<script src="resources/js/bstable/js/bootstrap.min.js "></script>
    <link rel="stylesheet" href="resources/js/bstable/css/bootstrap.min.css">
    
    <script type="text/javascript">
    $(function(){

    	let loginName;
    	/* 系统管理 */
		$("#btnSysStatus").click(function() {
			console.log("SysStatus! ");
			loginName = $('.text-info').html();
			window.location="query?loginName=" + loginName;
		});
		$("#btnSysDataSave").click(function() {
			console.log("SysDataSave! ");
			loginName = $('.text-info').html();
			window.location="query?loginName=" + loginName;
		});	
    	
    	/* 设备管理 */
		$("#btnDevLst").click(function() {
			console.log("DevLst! ");
			loginName = $('.text-info').html();
			window.location="setting?loginName=" + loginName;
		});	 
    	
    	/* 用户管理 */
		$("#btnUsrLst").click(function() {
			console.log("UsrLst! ");
			loginName = $('.text-info').html();
			window.location="users?loginName=" + loginName;
		});	     	
    	
    	
    	
    });
    </script>    
</head>
<body>
    <!-- 导航条 -->
    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="javascript:void(0)">机场跑道异物监测系统管理 <span class="badge">v1.0</span></a>
          </div>
      
          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

            <ul class="nav navbar-nav navbar-right">
              <li><a href="#">欢迎：<span class="text-info">${loginName}</span></a></li>
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户中心 <span class="caret"></span></a>
                <ul class="dropdown-menu">
                  <li><a href="#">修改信息</a></li>
                  <li role="separator" class="divider"></li>
                  <li><a href="#">退出登录</a></li>
                  <li role="separator" class="divider"></li>
                </ul>
              </li>
            </ul>
          </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
      </nav>
    <!-- 页面主题内容 -->
    <div class="container-fluid">
        
        <!-- 栅格系统 -->
        <div class="row">
            <!-- 菜单 -->
            <div class="col-sm-2">
                <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-default">
                      <div class="panel-heading" role="tab" id="headingOne">
                        <h4 class="panel-title">
                          <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                            <span class="glyphicon glyphicon-tasks"></span> 系统管理
                          </a>
                        </h4>
                      </div>
                      <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                        <div class="panel-body">
                            <ul class="list-group">
                                <li class="list-group-item"><button class="btn btn-primary" id="btnSysStatus">系统状态</button></li>
                                <li class="list-group-item"><button class="btn btn-primary" id="btnSysDataSave">数据管理</button></li>
                            </ul>
                        </div>
                      </div>
                    </div>

                    <div class="panel panel-default">
                      <div class="panel-heading" role="tab" id="headingTwo">
                        <h4 class="panel-title">
                          <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                            <span class="glyphicon glyphicon-th-large"></span> 设备组管理
                          </a>
                        </h4>
                      </div>
                      <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                        <div class="panel-body">
                            <ul class="list-group">
                                <li class="list-group-item"><button class="btn btn-primary" id="btnDevLst">设备列表</button></li>
                            </ul>
                        </div>
                      </div>
                    </div>

                    <div class="panel panel-default">
                      <div class="panel-heading" role="tab" id="headingThree">
                        <h4 class="panel-title">
                          <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                            <span class="glyphicon glyphicon-user"></span> 用户管理
                          </a>
                        </h4>
                      </div>
                      <div id="collapseThree" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingThree">
                        <div class="panel-body">
                            <ul class="list-group">
                                <li class="list-group-item"><button class="btn btn-primary" id="btnUsrLst">用户列表</button></li>
                            </ul>
                        </div>
                      </div>
                    </div>

                </div>

            </div>

            <!-- 页面中心内容 -->
            <div class="col-sm-10">
              <!-- 页头 -->
              <div class="page-header" style="margin-top: -20px;margin-bottom: 5px;">
                <h1>用户管理 </h1>
              </div>

              <!-- 标签页组件 -->
              <div>

                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                  <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">用户列表</a></li>
                  <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">添加用户</a></li>
                </ul>
              
                <!-- Tab panes -->
                <div class="tab-content">
                  <div role="tabpanel" class="tab-pane active" id="home">
                    <!-- 处理用户列表的面板 -->
                    <div class="panel panel-default">
                      <div class="panel-body text-center">

                      </div>
                      <div class="row">
                        <div class="col-sm-10 col-sm-offset-1">
                          <!-- 添加按钮 -->

                          <!-- 表格 -->
                          <table class="table">
                            <thead>
                              <tr>
                                <th>#</th>
                                <th>账号</th>
                                <th>密码</th>
                                <th>联系方式</th>
                                <th>操作</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <th scope="row">1</th>
                                <td>张三</td>
                                <td>123456</td>
                                <td>12345678901</td>
                                <td>
                                  <a href="" class="btn btn-danger btn-sm">删除</a>
                                  <a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#editUserModal" >修改</a>
                                </td>
                              </tr>
                              <tr>
                                <th scope="row">2</th>
                                <td>李四</td>
                                <td>abcdef</td>
                                <td>12345678901</td>
                                <td>
                                  <a href="" class="btn btn-danger btn-sm">删除</a>
                                  <a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#editUserModal" >修改</a>
                                </td>
                              </tr>
                              <tr>
                                <th scope="row">3</th>
                                <td>王五</td>
                                <td>uvwxyz</td>
                                <td>12345678901</td>
                                <td>
                                  <a href="" class="btn btn-danger btn-sm">删除</a>
                                  <a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#editUserModal" >修改</a>
                                </td>
                              </tr>
                            </tbody>
                          </table>

                          <!-- 分页组件 -->
                          <div class="pull-right">
                            <nav aria-label="Page navigation">
                              <ul class="pagination">
                                <li class="disable">
                                  <a href="#" aria-label="Previous">
                                    <span aria-hidden="true">&laquo;</span>
                                  </a>
                                </li>
                                <li class="active"><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li>
                                  <a href="#" aria-label="Next">
                                    <span aria-hidden="true">&raquo;</span>
                                  </a>
                                </li>
                              </ul>
                            </nav>
                          </div>

                        </div>

                      </div>


                    </div>

                    <!-- 处理消息提示 -->

                  </div>
                  <div role="tabpanel" class="tab-pane" id="profile">
                    <!-- 添加用户表单 -->
                    <div class="panel panel-default">
                      <div class="panel-body">
                        <div class="row">
                          <div class="col-sm-10 col-sm-offset-1">
                            <form>
                              <div class="form-group">
                                <label for="aa">账号</label>
                                <input type="text" class="form-control" id="addUserName" placeholder="admin">
                              </div>
                              <div class="form-group">
                                <label for="bb">密码</label>
                                <input type="password" class="form-control" id="addUserPwd" placeholder="123456">
                              </div>
                              <div class="form-group">
                                <label for="bb">联系方式</label>
                                <input type="text" class="form-control" id="addUserTele" placeholder="12345678901">
                              </div>
                              <button type="submit" class="btn btn-primary btn-block">提交</button>
                            </form>
                          </div>

                        </div>
                      </div>
                    </div>
                  
                  </div>
                </div>
              
              </div> 
            </div>


        </div>

        <!-- 修改模态框 -->
        <div class="modal fade" tabindex="-1" role="dialog" id="editUserModal">
          <div class="modal-dialog" role="document">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">Modal title</h4>
              </div>
              <div class="modal-body">
                <p>One fine body&hellip;</p>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary">保存</button>
              </div>
            </div><!-- /.modal-content -->
          </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->

    </div>

</body>

</html>